Skip to content

remove pointless allowed_through_unstable_modules on TryFromSliceError#135489

Merged
bors merged 2 commits into
rust-lang:masterfrom
RalfJung:TryFromSliceError
Jan 24, 2025
Merged

remove pointless allowed_through_unstable_modules on TryFromSliceError#135489
bors merged 2 commits into
rust-lang:masterfrom
RalfJung:TryFromSliceError

Conversation

@RalfJung
Copy link
Copy Markdown
Member

@RalfJung RalfJung commented Jan 14, 2025

This got added in #132482 but the PR does not explain why. @lukas-code do you still remember? Also Cc @Noratrieb as reviewer of that PR.

If I understand the issue description correctly, all paths under which this type is exported are stable now: core::array::TryFromSliceError and std::array::TryFromSliceError. If that is the case, we shouldn't have the attribute; it's a terrible hack that should only be used when needed to maintain backward compatibility. Getting some historic information right is IMO not sufficient justification to risk accidentally exposing this type via more unstable paths today or in the future.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rustc-dev-guide Area: rustc-dev-guide S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants